package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        double price=6000.0;//袋数(2000.0,1000.0,600.0,60.0)
        if(price>=2000){
            price*=0.5;
        }else if(price>=1000){
            price*=0.7;
        }else if(price>=500){
            price*=0.8;
        }else{
            price*=0.9;
        }
        System.out.println("最终消费金额为："+price);

        int a=85;//(带数90,65,47,77)
        if(a>=90){
            System.out.println("优秀");
        }else if(a>=85){
            System.out.println("良");
        }else if(a>=70){
            System.out.println("还行");
        }else if(a>=60){
            System.out.println("及格");
        }else{
            System.out.println("不及格");
        }
    }
}
